package com.yonyou.pmclouds.projectlog.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yonyou.pmclouds.basecom.entity.SuperVO;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 智能日志内容表vo
 * @author xiejianyu
 * 2019-09-18
 */
@Data
@Table(name = "pm_project_log_detail")
public class ProjectLogDetailVo extends SuperVO {

    private static final long serialVersionUID = 6798022933568823824L;

    //日志内容类型
    public static final int CONSTRUCTION_CONTENT = 1;                //施工内容
    public static final int INSPECTION_CONTENT = 2;                      //巡查内容
    public static final int PROBLEM_STATISTIC = 3;                           //问题统计
    public static final int VISA_ALTERATION = 4;                              //签证变更
    public static final int OTHER = 5;                                               //其他事项
    public static final int SAFETY_RECTIFY = 6;                                 // 安全整改
    public static final int STAGE_CHECK = 7; //阶段验收

    /**
     * 记录id
     */
    @Id
    private String pkProjectLogDetail;

    /**
     * 日志主记录id
     */
    private String pkProjectLog;

    /**
     * 内容类型
     */
    private int detailType;

    /**
     * 内容对应来源单据id
     */
    private String pkContentSource;

    /**
     * 内容Json字符串
     */
    private String contentJson;

    private String creator;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date creationtime;
    private String modifier;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date modifytime;
}
